import request from '@/utils/request'

// 查询被服务人信息列表
export function listServed(query) {
  return request({
    url: '/service/served/list',
    method: 'get',
    params: query
  })
}

// 查询被服务人信息详细
export function getServed(servedId) {
  return request({
    url: '/service/served/' + servedId,
    method: 'get'
  })
}

// 新增被服务人信息
export function addServed(data) {
  return request({
    url: '/service/served',
    method: 'post',
    data: data
  })
}

// 修改被服务人信息
export function updateServed(data) {
  return request({
    url: '/service/served',
    method: 'put',
    data: data
  })
}

// 删除被服务人信息
export function delServed(servedId) {
  return request({
    url: '/service/served/' + servedId,
    method: 'delete'
  })
}
